var e, r = require("../../../@babel/runtime/helpers/interopRequireDefault"), t = r(require("../../../@babel/runtime/regenerator")), a = require("../../../@babel/runtime/helpers/asyncToGenerator"), n = r(require("../../../utils/api"));

Page({
    data: {
        list: []
    },
    onLoad: (e = a(t.default.mark(function e(r) {
        var a, i;
        return t.default.wrap(function(e) {
            for (;;) switch (e.prev = e.next) {
              case 0:
                return a = wx.getStorageSync("openid"), e.prev = 1, e.next = 4, n.default.rule({
                    openid: a
                });

              case 4:
                i = e.sent, this.setData({
                    list: i.result
                }), e.next = 11;
                break;

              case 8:
                e.prev = 8, e.t0 = e.catch(1), console.log(e.t0.msg);

              case 11:
              case "end":
                return e.stop();
            }
        }, e, this, [ [ 1, 8 ] ]);
    })), function(r) {
        return e.apply(this, arguments);
    })
});